package com.xiaomi.service.Impl;

import com.xiaomi.dao.LunbotuMapper;
import com.xiaomi.entity.Lunbotu;
import com.xiaomi.service.LunbotuService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

/**
 * @ClassName LunbotuServiceImpl
 * @Description TODO
 * @Author 獄
 * @Date 2021/11/28 21:40
 */
@Service
public class LunbotuServiceImpl implements LunbotuService {
    @Resource
    LunbotuMapper lunbotuMapper;

    @Override
    public List<Lunbotu> selectAll(Map<String, Object> pars) {
        return lunbotuMapper.selectAll(pars);
    }

    @Override
    public int count(Map<String, Object> pars) {
        return lunbotuMapper.count(pars);
    }

    @Override
    public int update(Lunbotu lunbotu) {
        return lunbotuMapper.update(lunbotu);
    }

    @Override
    public int add(Lunbotu lunbotu) {
        return lunbotuMapper.add(lunbotu);
    }

    @Override
    public int del(int id) {
        return lunbotuMapper.del(id);
    }
}
